/**
 * Copyright (C), 2001-2031, www.bosssof.com.cn
 * FileName: Enum.java
 * Author: YuXingZh
 * Date: 16/5/2024 上午10:42
 * Description:
 * <p>
 * History:
 * Date          Author   Version  Desc
 * 2024-01-01    bosssoft  1.0.0   initialize this file
 */
package org.boss.exception;

/**
 * @author zhuchen
 * @date 2024/05/16 10:22
 **/

public class FileDecryptionException extends Exception {
    private final BizCodeEnum errorCode;

    public FileDecryptionException(BizCodeEnum errorCode) {
        super(errorCode.getDescription());
        this.errorCode = errorCode;
    }

    public FileDecryptionException(String message, BizCodeEnum errorCode) {
        super(message);
        this.errorCode = errorCode;
    }

    public BizCodeEnum getErrorCode() {
        return errorCode;
    }
}